﻿using System.Xml.Serialization;

namespace Toybox.NicoSharp.News
{
	using Utilities;

	[XmlRoot(@"niconews_response")]
	public partial class NewsTopics
	{

		#region [Static]

		public static NewsTopics Get()
		{
			string url = NicoUrls.InfoTop + "feed/newstopics_api.xml";
			string html = NicoWebClient.Get(url);
			return Deserializer.XmlDeserializer<NewsTopics>(html);
		}

		#endregion [Static]


		#region Public Members

		[XmlAttribute]
		public string status;

		[XmlElement]
		public Article[] article;

		#endregion Public Members

	}
}
